<?php


function accepted($employer_name)
{
	$message = '<div>
				<h3><i>Dear '.$employer_name.',</i></h3>
				</div>
				<div>
				<p>Thank you for your patience and cooperation with our Team </p>
				<p>You can now Login with your account.</p>

				<p>STATUS: <font style="color:green"> Verified </font></p>
				<p>We are glad to have you in our site</p>
				<p style="margin-top:100px;">Check our <a href="#"> Terms and Agreements </a> </p> 
				</div>
				<p>Thanks,</p>
				<p>Nikita @ Famous Labor Supply Service </p>';
	return $message;
}

function declined($employer_name)
{
	$message = '<div>
				<h3><i>Dear '.$employer_name.',</i></h3>
				</div>
				<div>
				<p>Thank you for your interest to be an employer of Famous Labour Supply Services.<br>
				Your company has been declined by the FLSS administrator, the decision is based<br>
				upon a strict compliance of every company that wants to be an employer of FLSS.<br><br>
				for more information on what the company needs to be part of FLSS. Click <a href="http://localhost/flss_fbit/svn/FLSS/account_template/index.html?#cu">here</a>
				</p>
				</div>
				<p>Thanks,</p>
				<p>Nikita @ Famous Labor Supply Service </p>';
	return $message;
}

function aftersu($employer_name)
{
	$message = '<div>
				<h3><i>Dear '.$employer_name.',</i></h3>
				</div>
				<div>
				<p>Thank you for signing up in Famous Labour Supply Services. </p>

				<p>STATUS: <font style="color:red"> Not Verified </font></p>
				<p>We will contact you as soon as possible. Please do not forget your username and password.</p>
				<p>For now check your email or number regularly.</p>
				<p style="margin-top:100px;">Check our <a href="#"> Terms and Agreements </a> </p> 
				</div>
				<p>Thanks,</p>
				<p>Nikita @ Famous Labor Supply Service </p>';
	return $message;
}


function sendEmail($to,$message,$subject)
    {
    	ini_set("SMTP","ssl://smtp.gmail.com"); 
		ini_set("smtp_port","465"); //No further need to edit your configuration files.
		$mail = new PHPMailer();
		//$mail->SMTPDebug = 1;
		$mail->SMTPAuth = true;
		$mail->Host = "smtp.gmail.com"; // SMTP server
		$mail->SMTPSecure = "ssl";
		$mail->Username = BH_EMAIL; //account with which you want to send mail. Or use this account. i dont care :-P
		$mail->Password = BH_PASSWORD; //this account's password.
		$mail->Port = "465";
		$mail->IsSMTP();  // telling the class to use SMTP
		$mail->isHTML(true);
		$rec1="trials.php@gmail.com"; //receiver. email addresses to which u want to send the mail.
		$rec2=$to;
		$mail->AddAddress($rec2);
		$mail->Subject  = $subject;
		$mail->Body     = $message;
		$mail->setFrom(BH_EMAIL,"FLSS.ph");

		$mail->WordWrap = 200;
		//var_dump(!$mail->Send()); die;
		if(!$mail->Send())
		{
		  return $mail->ErrorInfo;
		}
		else
		{
	 	  return true;
		}
    }


?>